package com.example.demo.service;

import java.util.concurrent.CompletableFuture;

public interface ThreadTestService {
    // 无返回值的线程任务
    void threadTask(int i);

    // 有返回值的线程任务
    CompletableFuture<String> threadTaskWithReturn01();

    CompletableFuture<String> threadTaskWithReturn02();

    CompletableFuture<String> threadTaskWithReturn03();

    CompletableFuture<String> threadTaskWithReturn04();
}
